/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cognitivetouch.colorSpan;

import org.lwjgl.opengl.GL11;

/**
 *
 * @author Xiaoxing
 */
public class Fix {

    final static float radius = 20;

    public static void render(int centerX, int centerY, float A) {

//        GL11.glBegin(GL11.GL_TRIANGLE_FAN);
//        GL11.glVertex2f(centerX, centerY);
//
//        for (float angle = 0.0f; angle < 360.0f; angle += 0.2) {
//            x = centerX + (float) Math.sin(angle) * radius;
//            y = centerY + (float) Math.cos(angle) * radius;
//            GL11.glVertex2f(x, y);
//        }
        GL11.glLineWidth(30.0f);
        GL11.glBegin(GL11.GL_LINES);
        float[] color = ColorWheel.getColor(A);
        GL11.glColor3f(color[0], color[1], color[2]);
        GL11.glVertex2f(945f, 540f);
        GL11.glVertex2f(975f, 540f);

        GL11.glEnd();

        GL11.glEnd();
    }
}
